<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title> - 基本表单</title>
    <meta name="keywords" content="">
    <meta name="description" content="">
    <link rel="shortcut icon" href="../favicon.ico">
    <link href="/Public/css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="/Public/css/font-awesome.css?v=4.4.0" rel="stylesheet">
    <link href="/Public/css/animate.css" rel="stylesheet">
    <link href="/Public/css/style.css?v=4.1.0" rel="stylesheet">

    <style>
        .project-people, .project-actions {
            text-align: left;
            vertical-align: middle;
        }

        .label_contact {
            position: relative;
            color: #2a2c2e;
            margin-left: 30px;
            margin-top: 7px;
        }

        .l_width {
            width: 70px;
            margin-top: 7px;
        }
        .back_on_list{
            border: 1px  solid #6254B2;
            padding: 5px;
            background-color: #6254B2;
            color: white;
            border-radius: 4px ;
            margin: 10px 0px 5px 10px;
        }
        .kf_function{
            display: inline-block;
            text-align: center;
            border: 1px  dotted #c3c3c3;
            padding: 12px;
            color: white;
            font-size: 16px;
            /*border-radius: 2px 2px 5px 2px ;*/
            width: 300px;

        }
        .top_distance{
           margin-top: 20px;
        }

    </style>
</head>
<body class="gray-bg">

<div class="wrapper wrapper-content animated fadeInRight">
    <div class="row">
        <div class="col-sm-12">

            <div class="ibox float-e-margins">
                <div class="ibox-content">
                    <div class="kf_function">
                        <a  onclick="back_list()" class="back_on_list">返回</a>
                        <a class="back_on_list" onclick="quick_answer()"> 快捷处理</a>
                        <a class="back_on_list" onclick="Remarks()">查记</a>
                    </div>

                    <!--<if condition="$user.refuse_status eq '3'">-->
                        <!--<label>驳回原因：</label>-->
                        <!--<label><{$user.refuse_content}></label>-->
                    <!--</if>-->

                    <form method="post" class="form-horizontal" onsubmit="return false" class="form_style">

                        <div class="form-group top_distance">
                            <label class="col-sm-2 control-label">人脸照片</label>
                            <div class="col-sm-10 project-people" style="display: inline-block;">
                                <div class="user_box">

                                    <a href="<{$user_pic.photo}>" class="img_link" data-rel="colorbox"> <img
                                            src="<{$user_pic.photo}>" height="165" width="150"/></a>

                                    <if condition="$user_pic.photo1 neq ''">
                                        <a href="<{$user_pic.photo1}>" class="img_link" data-rel="colorbox"> <img
                                                src="<{$user_pic.photo1}>" height="165" width="150"/></a>
                                    </if>
                                    <if condition="$user_pic.photo2 neq ''">
                                        <a href="<{$user_pic.photo2}>" class="img_link" data-rel="colorbox"> <img
                                                src="<{$user_pic.photo2}>" height="165" width="150"/></a>
                                    </if>
                                </div>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">身份证照</label>
                            <div class="col-sm-10 project-people" style="display: inline-block;">
                                <a href="<{$user_pic.behind}>" class="img_link" data-rel="colorbox"> <img
                                        src="<{$user_pic.behind}>"
                                        height="183" width="284"/></a>
                                <a href="<{$user_pic.front}>" class="img_link" data-rel="colorbox"> <img
                                        src="<{$user_pic.front}>" height="183" width="284"/></a>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">身份证号</label>
                            <div class="col-sm-10">
                                <input class="form-control" type="text" placeholder="身份证号" id="id_card"
                                       value="<{$user.id_card}>">
                            </div>
                        </div>
                 <div class="form-group">
                            <label class="col-sm-2 control-label">现居住地址</label>
                            <div class="col-sm-10">
                                <input class="form-control" type="text" placeholder="请输入居住地址" id="live_address"
                                       value="<{$user.address}>">
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-sm-2 control-label">信用评分</label>
                            <div class="col-sm-10">
                                <input class="form-control" type="text" placeholder="无" value="<{$user.score}>">
                            </div>
                        </div>
                        <div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label" style="color: #2a2c2e">紧急联系1:</label>
                                <label class="l_width"><{$user_contact.relative_name}> </label>
                                <label class="label_contact">紧急联系号码:</label>
                                <label class="l_width"><{$user_contact.relative_mobile}> </label>
                                <label class="label_contact">关系:</label>
                                <label class="l_width"><{$user_contact.r_type}></label>
                                <label class="label_contact">通话次数:</label>
                                <label class="l_width"><{$user_contact.contact_sum}></label>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label" style="color: #2a2c2e">紧急联系2:</label>
                                <label class="l_width"><{$user_contact.other_name}> </label>
                                <label class="label_contact">紧急联系号码:</label>
                                <label class="l_width"><{$user_contact.other_mobile}> </label>
                                <label class="label_contact">关系:</label>
                                <label class="l_width"><{$user_contact.f_type}></label>
                                <label class="label_contact">通话次数:</label>
                                <label class="l_width"><{$user_contact.contact_sum2}></label>
                            </div>

                        </div>
                        <!--<div class="form-group">-->
                            <!--<label class="col-sm-2 control-label">操作</label>-->
                            <!--<div class="col-sm-10">-->
                              <!--<a class="back_on_list">快捷处理</a>-->
                              <!--<a class="back_on_list">查记</a>-->
                            <!--</div>-->
                        <!--</div>-->
                    </form>

                    <!--<div class="kf_function">-->
                       <!--<span>操作：</span>-->


                    <!--</div>-->

                </div>
            </div>
        </div>
    </div>
</div>
<label style="margin-left: 10px;font-size: 12px" id="table_flag">用户通讯录</label>
<div class="wrapper wrapper-content animated fadeInRight">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="clients-list">
                    <div class="ibox-content">
                        <div class="tab-content" style="height: 800px" id="index_cont">
                            <div class="tab-pane active">
                                <div class="full-height-scroll">
                                    <div class="table-responsive">
                                        <table class="table table-striped table-bordered table-hover" id="sample-table">
                                            <thead>
                                            <tr>
                                                <th>名称</th>
                                                <th>手机</th>
                                                <th>通话次数</th>
                                            </tr>
                                            </thead>
                                            <tbody>

                                            <volist name="user_tx" id="vo">
                                                <tr>
                                                    <td><{$vo.name}></td>
                                                    <td><{$vo.call_other_number}></td>
                                                    <td><{$vo.num}></td>
                                                </tr>
                                            </volist>
                                            </tbody>
                                        </table>
                                        <div class="dataTables_paginate paging_simple_numbers">
                                            <ul class="pagination">
                                                <if condition="$tol gt 10">
                                                    <{$fpage}>
                                                </if>
                                            </ul>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>



<!-- 全局js -->
<script src="/Public/js/jquery.min.js?v=2.1.4"></script>
<script src="/Public/js/bootstrap.min.js?v=3.3.6"></script>
<!-- 自定义js -->
<script src="/Public/js/content.js?v=1.0.0"></script>
<script src="/Public/admin/js/plugins/fancybox/jquery.fancybox.js"></script>
<script src="/Public/admin/js/plugins/jquery.colorbox-min.js"></script>
<script src="/Public/admin/js/plugins/layer/layer.min.js"></script>

<script src="/Public/admin/js/layer/layer.js"></script>
<script src="/Public/admin/js/layui/layui.js"></script>

<script>
    function back_list() {
        var page_first = "<{$page_first11}>";
        var type1 = "<{$url_type}>";
        var page = "<{$page11}>";
        var url_type_status = "<{$url_type_status}>";
        var to_url = "<{$SRVER_NAME}>/admin.php/Temp/channelList?page_first=" + page_first + "&page=" + page + "&type=" + type1;
        window.location.href=to_url;
    }

   var vid="<{$vid}>";
    //备注
    function Remarks(){

//        var page_first="<{$page_first}>";
//        var type1="<{$url_type}>";
//        var page="<{$page}>";
//
        layer.open({
            title:'外呼沟通备注',
            type: 2,
            area: ['50%', '60%'],
            maxmin: true,
            offset:'100px',
            content: '<{$SRVER_NAME}>/admin.php/Temp/Remarks.html?vid='+vid,
            success: function(layero){
                layero.find('.layui-layer-min').remove();
            }
        });
    }

    //快速回复
    function quick_answer(){
//        var page_first="<{$page_first}>";
//        var type1="<{$url_type}>";
//        var page="<{$page}>";
//
        layer.open({
            title:'快捷处理',
            type: 2,
            area: ['50%', '60%'],
            maxmin: true,
            offset:'100px',
            content: '<{$SRVER_NAME}>/admin.php/Temp/Quick_answer.html?vid='+vid,
            success: function(layero){
                layero.find('.layui-layer-min').remove();
            }
        });
    }

    $(function () {
        var pages = "<{$pages}>";

        if (pages != 0) {
            window.location.hash = "#table_flag";
        }

    })

    jQuery(function ($) {
        colorbox_params = {
            reposition: true,
            scalePhotos: true,
            scrolling: false,
            previous: '<i class="fa fa-chevron-left"></i>',
            next: '<i class="fa fa-chevron-right"></i>',
            close: '&times;',
            current: '{current} of {total}',
            maxWidth: '80%',
            maxHeight: '80%',
            onOpen: function () {
                document.body.style.overflow = 'hidden';
            },
            onClosed: function () {
                document.body.style.overflow = 'auto';
            },
            onComplete: function () {
                $.colorbox.resize();
            }
        };
        $('.Info_style [data-rel="colorbox"]').colorbox(colorbox_params);
        $('.project-people [data-rel="colorbox"]').colorbox(colorbox_params);
        $("#cboxLoadingGraphic").append("<i class='icon-spinner orange'></i>");

    });



</script>
</body>
</html>
